<template>
	<view class="head">
		<image src="https://gd-hbimg.huaban.com/6ef650d931f522431f15570b75739392d9cb68e4f73-Q9K4OI_fw480webp" @click="goBack"></image>
		<text>{{ title }}</text>
		<image src="https://gd-hbimg.huaban.com/468f0a6799de8a803f260ed9ead47589b8ea1d2a1a1f-vp0gzv_fw480webp" mode=""></image>
	</view>
</template>

<script>
	export default {
		props: {
			title: {
				type: String,
				default: '顶部栏',
			},
		},
		name:"MyHead",
		methods: {
			goBack() {
				uni.navigateBack({
					delta: 1
				})
			}
		}
	}
</script>

<style lang="less">
	//-------------顶部栏
	.head{
		height: 175rpx;
		background-color: #0d122B;
		display: flex;
		justify-content: space-between;
		padding: 13px;
		padding-top: 0;
		padding-bottom: 0;
		image{
			width: 50rpx;
			height: 50rpx;
			margin-top: 104rpx;
		}
		text{
			width: 363rpx;
			font-size: 19px;
			height: 57rpx;
			text-align: center;
			color: aliceblue;
			margin-top: 104rpx;
		}
	}
</style>